-
Couldn't load subscription status.
- Fork 13
Move to ES bridge API #336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move to ES bridge API #336
Conversation
src/main/java/co/elastic/logstash/filters/elasticintegration/EventProcessor.java
Show resolved
Hide resolved
src/main/java/co/elastic/logstash/filters/elasticintegration/EventProcessorBuilder.java
Show resolved
Hide resolved
src/main/java/co/elastic/logstash/filters/elasticintegration/IngestDuplexMarshaller.java
Outdated
Show resolved
Hide resolved
src/main/java/co/elastic/logstash/filters/elasticintegration/geoip/GeoIpProcessorFactory.java
Outdated
Show resolved
Hide resolved
src/main/java/co/elastic/logstash/filters/elasticintegration/ingest/PipelineProcessor.java
Outdated
Show resolved
Hide resolved
src/main/java/co/elastic/logstash/filters/elasticintegration/ingest/RedactPlugin.java
Outdated
Show resolved
Hide resolved
|
This pull request does not have a backport label. Could you fix it @mashhurs? 🙏
|
0707b1b to
bc9af21
Compare
src/main/java/co/elastic/logstash/filters/elasticintegration/PipelineConfigurationFactory.java
Outdated
Show resolved
Hide resolved
src/main/java/co/elastic/logstash/filters/elasticintegration/IngestDuplexMarshaller.java
Show resolved
Hide resolved
18333c6 to
5a96c8c
Compare
9820699 to
9bdad09
Compare
…s. Removes required upwrap interface since upstream moved to default method. Utilizes metadata version field since upstream made it accessible.
09c332c to
9b0b557
Compare
fa3468c to
53ded41
Compare
|
|
||
| import org.elasticsearch.ingest.geoip.IpDatabase; | ||
|
|
||
| public interface ValidatableIpDatabase extends IpDatabase { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No direct usage.
|
|
||
| import java.util.Map; | ||
|
|
||
| public class RedactPlugin extends Plugin implements IngestPlugin { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved to the upstream bridge.
src/main/java/co/elastic/logstash/filters/elasticintegration/util/PluginProjectResolver.java
Show resolved
Hide resolved
…s to logstash-bridge.
- `new ${BRIDGE}(...)` -> `${BRIDGE}.create(...)`: use bridge-provided
factory methods
- `${INTERNAL}Bridge.${NESTED}` -> `${INTERNAL}${NESTED}Bridge`: extract
nested bridges to top-level
- `${BRIDGE}.AbstractExternal` -> `AbstractExternal${BRIDGE}`: extract
nested "AbstractExternal" base implementations to top-level
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM.
We need to first merge the upstream PR on elasticsearch elastic/elasticsearch#132595 (review) and then ensure we're pointing at the correct ELASTICSEARCH_REPO and ELASTICSEARCH_TREEISH in gradle.properties.
src/main/java/co/elastic/logstash/filters/elasticintegration/geoip/GeoIpProcessorFactory.java
Outdated
Show resolved
Hide resolved
💚 Build Succeeded
History
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏼 Looks good. It's been a long road but it will be very good to have this stable bridge in place.
Description
This PR highlights the initial changes required to move to the Bridge Stable API. However, this doesn't mean these changes will be enough for the plugin to be a in normal working state. Rather, this changes highlight how does current bridge Spable API state align with plugin requirements. Based on the discussions on these changes, we may need to adjust the plan (sub-tasks).
Next steps
elastic_integrationplugin usage to ES logstash-bridge. elasticsearch#131486PLEASE IGNORE:
gradle.buildchanges which are already counted in [Move to ES Bridge] Buildlogstash-bridgeand include in the plugin #330, this is a requirement to call Bridge Stable API interfaces.